﻿using System;
using Microsoft.Xna.Framework;
using ReLogic.Graphics;

namespace Terraria.ModLoader
{
	// Token: 0x02000205 RID: 517
	public sealed class DrawableTooltipLine : TooltipLine
	{
		// Token: 0x170001B0 RID: 432
		// (get) Token: 0x060016DC RID: 5852 RVA: 0x00011741 File Offset: 0x0000F941
		// (set) Token: 0x060016DD RID: 5853 RVA: 0x00416BB8 File Offset: 0x00414DB8
		public int OriginalX
		{
			get
			{
				return this._originalX;
			}
			internal set
			{
				this._originalX = value;
				this.X = value;
			}
		}

		// Token: 0x170001B1 RID: 433
		// (get) Token: 0x060016DE RID: 5854 RVA: 0x00011749 File Offset: 0x0000F949
		// (set) Token: 0x060016DF RID: 5855 RVA: 0x00416BD8 File Offset: 0x00414DD8
		public int OriginalY
		{
			get
			{
				return this._originalY;
			}
			internal set
			{
				this._originalY = value;
				this.Y = value;
			}
		}

		// Token: 0x170001B2 RID: 434
		// (get) Token: 0x060016E0 RID: 5856 RVA: 0x00011751 File Offset: 0x0000F951
		// (set) Token: 0x060016E1 RID: 5857 RVA: 0x00011759 File Offset: 0x0000F959
		public Color color { get; internal set; }

		// Token: 0x170001B3 RID: 435
		// (get) Token: 0x060016E2 RID: 5858 RVA: 0x00011762 File Offset: 0x0000F962
		// (set) Token: 0x060016E3 RID: 5859 RVA: 0x0001176A File Offset: 0x0000F96A
		public new Color? overrideColor { get; internal set; }

		// Token: 0x060016E4 RID: 5860 RVA: 0x00416BF8 File Offset: 0x00414DF8
		public DrawableTooltipLine(TooltipLine parent, int index, int x, int y, Color color) : base(parent.mod, parent.Name, parent.text)
		{
			this.isModifier = parent.isModifier;
			this.isModifierBad = parent.isModifierBad;
			this.overrideColor = parent.overrideColor;
			this.oneDropLogo = parent.oneDropLogo;
			this.text = parent.text;
			this.index = index;
			this.OriginalX = x;
			this.OriginalY = y;
			this.color = color;
		}

		// Token: 0x040015B3 RID: 5555
		public new readonly string text;

		// Token: 0x040015B4 RID: 5556
		public readonly int index;

		// Token: 0x040015B5 RID: 5557
		public new readonly bool isModifier;

		// Token: 0x040015B6 RID: 5558
		public new readonly bool isModifierBad;

		// Token: 0x040015B7 RID: 5559
		private int _originalX;

		// Token: 0x040015B8 RID: 5560
		private int _originalY;

		// Token: 0x040015B9 RID: 5561
		public int X;

		// Token: 0x040015BA RID: 5562
		public int Y;

		// Token: 0x040015BD RID: 5565
		public new readonly bool oneDropLogo;

		// Token: 0x040015BE RID: 5566
		public DynamicSpriteFont font = Main.fontMouseText;

		// Token: 0x040015BF RID: 5567
		public float rotation;

		// Token: 0x040015C0 RID: 5568
		public Vector2 origin = Vector2.Zero;

		// Token: 0x040015C1 RID: 5569
		public Vector2 baseScale = Vector2.One;

		// Token: 0x040015C2 RID: 5570
		public float maxWidth = -1f;

		// Token: 0x040015C3 RID: 5571
		public float spread = 2f;
	}
}
